
<div class="popup-statistic" >
    <table border=0 class="tbl-popup">
        <tr>
            <td>年月</td>
            <td>
                <select id="y_820">
            	<?php
                echo HelperBG::getYearOption();
                ?>
                </select>
            </td>
            <td>
                <select id="m_820">
                <?php
                echo HelperBG::getMonthOption();
                ?>
                </select>
            </td>
            <td><input type="button" id="search_popup" value="検索"></td>
            <td class="right"><input id="csv_popup" type="button" value="ダウンロード"></td>
        </tr>
    </table>
    <div style="max-height: 300px; overflow: auto;">
       <table class="adminlist" >
		<thead>
			<tr>
				<th width="30%" class="left">
					センターコード				
                </th>
				<th width="70%" class="left">
                    センター名称				
                </th>
				
			</tr>
		</thead>
		
		<tbody id="820_result" >
         
		</tbody>
        
       
	</table>
    </div>
  
</div>

<script>
    jq(document).ready(function(){
        jq('#search_popup').click(function(event){
            jq.ajax({
                url: 'index.php?option=com_popupstatistic&task=not_input_ocba&cc_type='+jq('#cc_type option:selected').val()+'&date='+jq('#y_820 option:selected').val()+'/'+jq('#m_820 option:selected').val(),
                context: document.body
            }).done(function(data ) {
                jq('#820_result').html(data);
            });
        });
        jq('#csv_popup').click(function(event){
            window.location.href = 'index.php?option=com_popupstatistic&task=export&cc_type='+jq('#cc_type option:selected').val()+'&date='+jq('#y_820 option:selected').val()+'/'+jq('#m_820 option:selected').val();
        });
    });
</script>

<?php 

$app = &JFactory::getApplication();
$app->close();

?>